1
<System
.ComponentModel
.RunInstaller(True)> Partial Class ProjectInstaller
2 Inherits System
.Configuration
.Install
.Installer
4 'Installer overrides dispose to clean up the component list.
5 <System
.Diagnostics
.DebuggerNonUserCode()> _
6 Protected Overrides
Sub Dispose(ByVal disposing
As Boolean)
8 If disposing AndAlso components IsNot
Nothing Then
12 MyBase
.Dispose(disposing
)
16 'Required by the Component Designer
17 Private components
As System
.ComponentModel
.IContainer
19 'NOTE: The following procedure is required by the Component Designer
20 'It can be modified using the Component Designer.
21 'Do not modify it using the code editor.
22 <System
.Diagnostics
.DebuggerStepThrough()> _
23 Private Sub InitializeComponent()
24 Me.ServiceProcessInstaller1
= New System
.ServiceProcess
.ServiceProcessInstaller()
25 Me.ServiceInstaller1
= New System
.ServiceProcess
.ServiceInstaller()
27 'ServiceProcessInstaller1
29 Me.ServiceProcessInstaller1
.Account
= System
.ServiceProcess
.ServiceAccount
.LocalService
30 Me.ServiceProcessInstaller1
.Password
= Nothing
31 Me.ServiceProcessInstaller1
.Username
= Nothing
35 Me.ServiceInstaller1
.Description
= "Trigger Start Service"
36 Me.ServiceInstaller1
.DisplayName
= "VBTriggerStartWindowsService Sample Service"
37 Me.ServiceInstaller1
.ServiceName
= "VBTriggerStartWindowsService"
41 Me.Installers
.AddRange(New System
.Configuration
.Install
.Installer() {Me.ServiceProcessInstaller1
, Me.ServiceInstaller1
})
44 Friend WithEvents ServiceProcessInstaller1
As System
.ServiceProcess
.ServiceProcessInstaller
45 Friend WithEvents ServiceInstaller1
As System
.ServiceProcess
.ServiceInstaller